<!DOCTYPE html>
<html>
<head>
  <title>MetaCoin - Truffle Webpack Demo w/ Frontend</title>
  <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
  <script src="./app.js"></script>
</head>
<body>
  <h1>MetaCoin</h1>
  <h2>Example Truffle Dapp</h2>
  <h3>You have <span class="black"><span id="balance"></span> META</span></h3>

  <br>
  <h1>Send MetaCoin</h1>
  <br><label for="amount">Amount:</label><input type="text" id="amount" placeholder="e.g., 95"></input>
  <br><label for="receiver">To Address:</label><input type="text" id="receiver" placeholder="e.g., 0x93e66d9baea28c17d9fc393b53e3fbdd76899dae"></input>
  <br><br><button id="send" onclick="App.sendCoin()">Send MetaCoin</button>
  <br><br>
  <span id="status"></span>
  <br>
  <span class="hint"><strong>Hint:</strong> open the browser developer console to view any errors and warnings.</span>
<br>
<br>
<span id="address"></span>
 <br><label for="_name">名称:</label><input type="text" id="_name" ></input>
  <br><label for="_price">价格:</label><input type="text" id="_price" ></input>
   <br><label for="_weight">重量:</label><input type="text" id="_weight" ></input>
 <br><br><button id="send" onclick="App.Trace()">部署</button>

<br>
<br>
<span id="getFood"></span>
 <br><br><button id="send" onclick="App.getFood()">查部署</button>
<br>
<br>

 <br><label for="_message">信息:</label><input type="text" id="_message" ></input>
  <br><label for="_date">时间:</label><input type="datetime-local" id="_date" ></input>
   <br><label for="_owner">地址:</label><input type="text" id="_owner" ></input>
 <br><label for="_status">状态:</label><input type="text" id="_status" ></input>
 <br><br><button id="send" onclick="App.putLogistics()">增加</button>

<button id="send" onclick="App.getLogisticsCount()">查看中转数量</button><span id="getLogisticsCount"></span>  

<br><label for="num">中转数:</label><input type="text" id="num" ></input>
<br><button id="send" onclick="App.getLogistics()">查看中转信息</button><span id="getLogistics"></span>

<span id="putAttribute"></span>
 <br><label for="_ownerp">地址:</label><input type="text" id="_ownerp" ></input>
  <br><label for="_namep">属性名称:</label><input type="text" id="_namep" ></input>
   <br><label for="_datep">时间:</label><input type="datetime-local" id="_datep" ></input>
<br><label for="_descp">描述:</label><input type="text" id="_descp" ></input>
 <br><br><button id="send" onclick="App.putAttribute()">增加属性</button>
<br>
<br>
<span id="getAttribute"></span>
 <br><label for="_attr_number">地址:</label><input type="text" id="_attr_number" ></input>
 <br><br><button id="send" onclick="App.getAttribute()">获得属性</button>
<br>
<br>
<span id="datas"></span>
 <br><label for="datas">地址:</label><input type="text" id="datas" ></input>
 <br><br><button id="send" onclick="App.datas()">data</button>
<br>
<br>



<span id="address"></span>
 <br><label for="_ownera">地址:</label><input type="text" id="_ownera" ></input>
<br><label for="messagea">描述:</label><input type="text" id="messagea" ></input>
 <br><br><button id="send" onclick="App.putAttribute()">留言</button>
<br>
<br>

<span id="getGuestbook"></span>
 <br><label for="_ownerGG">地址:</label><input type="text" id="_ownerGG" ></input>
 <br><br><button id="send" onclick="App.getProductAddress()">获得留言</button>
<br>
<br>


<span id="name_1address"></span>
 <br><label for="name_1">名称:</label><input type="text" id="name_1" ></input>
<br><label for="category_1">类别:</label><input type="text" id="category_1" ></input>
<br><label for="origin">产地:</label><input type="text" id="origin" ></input>
 <br><br><button id="send" onclick="App.addProductToStore()">增加商品</button>
<br>
<br>


<span id="getProduct_1"></span>
 <br><label for="getProduct">商品编号:</label><input type="text" id="getProduct" ></input>
 <br><br><button id="send" onclick="App.getProduct()">fff</button>
<br>
<br>
<span id="getProduct_1"></span>
 <br><label for="getProduct">商品地址:</label><input type="text" id="getProductByAddress" ></input>
 <br><br><button id="send" onclick="App.getProductByAddress()">fff</button>
<br>
<br>

<br>
<br>
 <!-- <br><label for="x">数字:</label><input type="text" id="x" ></input> -->
 <br><label for="_message">信息:</label><input type="text" id="_message1" ></input>
   <br><label for="_owner">地址:</label><input type="text" id="_owner1" ></input>
 <br><label for="_status">状态:</label><input type="text" id="_status1" ></input>
 <br><br><button id="send" onclick="App.addLogistics()">增加</button>

<span id="getall1"></span>
 <br><label for="getall">商品编号:</label><input type="text" id="getall" ></input>
 <br><br><button id="send" onclick="App.getAddressinfo()">fff</button>
<br>
<br>


<br>
<br>

   <br><label for="_owner">地址:</label><input type="text" id="getLogisticss1" ></input>
   <br><label for="_owner">id:</label><input type="text" id="_status1" ></input>
 <br><br><button id="send" onclick="App.getLogisticss()">查看</button>


<span id="name_1address"></span>
 <br><label for="name_1">名称:</label><input type="text" id="name_11" ></input>
<br><label for="category_1">类别:</label><input type="text" id="category_11" ></input>
<br><label for="origin">产地:</label><input type="text" id="origin1" ></input>
 <br><br><button id="send" onclick="App.getFail()">设置请求数据</button>
<br>
<br>

 <br><br><button id="send" onclick="App.getFail()">获得请求数据</button>
<br>
<br>


</body>
</html>
